import axios from '@/libs/api.request'
export const selectlovingassistance = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcLooveDonationService/selectlovingassistance',
    data: data,
    type: 'post'
  })
}
export const updatelovedonation = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctclovedonation/updatelovedonation',
    data: data,
    type: 'post'
  })
}
export const insertcontribution = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctclovedonation/insertcontribution',
    data: data,
    type: 'post'
  })
}
export const submitlove = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcLooveDonationService/submitlove',
    data: data,
    type: 'post'
  })
}
// 查询募捐排行表
export const selectrankingList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctclovedonation/selectrankingList',
    data: data,
    type: 'post'
  })
}
// 查询募捐明细表
export const selectlovecontributionList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctclovedonation/selectlovecontributionList',
    data: data,
    type: 'post'
  })
}
// 发布求援信息
export const releaserescue = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcaskforhelp/releaserescue',
    data: data,
    type: 'post'
  })
}
// 查询我在求助列表
export const selectrescuemessage = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcAskForHelpService/selectrescuemessage',
    data: data,
    type: 'post'
  })
}
// 微信支付-下单
export const creatLoveOrder = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcLooveDonationService/creatLoveOrder',
    data: data,
    type: 'post'
  })
}
// 发布求援信息审核列表
export const selectexaminemessage = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcAskForHelpService/selectexaminemessage',
    data: data,
    type: 'post'
  })
}
/* 判断是否存在企业或是否为企业员工 */
export const getenterpriseinfo = () => {
  return axios.request({
    url: '/api/uc/ctc/ctcEnterpriseService/getenterpriseinfo',
    type: 'get'
  })
}
// 根据Id查询企业信息
export const getEnterpriseById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcenterprise/getEnterpriseById',
    type: 'post',
    data: data
  })
}
/* 人员情况统计 */
export const getPersonNum = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcenterprise/getPersonNum',
    type: 'post',
    data: data
  })
}
/* 企业人员身体情况录入 */
export const savePersonCondition = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcEnterpriseService/savePersonCondition',
    type: 'post',
    data: data
  })
}

export const getPersonConditionList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcenterprise/getPersonConditionList',
    type: 'post',
    data: data
  })
}
/* 查询募捐资金 */
export const selectfundraising = (data) => {
  return axios.request({
    url: '/api/us/ctc/fundraising/selectfundraising',
    type: 'post',
    data: data
  })
}
// 查询募捐明细
export const selectdetailedList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcfundraising/selectdetailedList',
    type: 'post',
    data: data
  })
}
// 查询使用明细
export const selectdetailsList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcfundraising/selectdetailsList',
    type: 'post',
    data: data
  })
}
